<template>
<div>
    <mt-swipe :auto="4000">
<!--        将来谁使用次轮播组件，谁为什么传递imgs
此时imgs是父组件向子组件传值来设置
-->
        <mt-swipe-item v-for='(item,index) in imgs' :key='index'>
            <img :src="item.img" alt="" :class="{full:isfull}">
        </mt-swipe-item>
    </mt-swipe>
</div>
</template>

<script>
    export default {
data(){
    return{

    }
},
        props:["imgs","isfull"]

    }
</script>

<style lang="less" scoped>
    /*轮播样式*/
    .mint-swipe {
        height: 200px;

        .mint-swipe-item { //交集选择器
            text-align: center;

            img {
                /*width: 100%;*/
                height: 100%;
            }
        }
    }
    .full{
        width: 100%;
    }
</style>